package com.p2p.controller.operationsManagement;


import com.p2p.common.base.RespResult;
import com.p2p.entity.ExperienceConfiguration;
import com.p2p.service.operationsManagementService.ExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
@RequestMapping("/experience")
public class ExperienceController {

    @Autowired
    private ExperienceService experienceService;

    /**
     * 体验标的配置
     * @param experienceConfiguration 体验标实体
     * @return
     */
    @PostMapping(value = "/addExperience")
    @ResponseBody
    public RespResult addExperience(@RequestBody ExperienceConfiguration experienceConfiguration){

        return experienceService.addExperience(experienceConfiguration);
    }
}
